package com.iOS.dao;

import com.iOS.entity.BlogInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogInfoMapper {
    /**
     * @Author:LiuYang
     * @Description:增加一条博客
     * @Date:13:33 2018/9/22
     */
    int insert(BlogInfo blogInfo);

    /**
     * @Author:LiuYang
     * @Description:删除一条博客
     * @Date:13:33 2018/10/4
     */
    int delete(int id);

    /**
     * @Author:LiuYang
     * @Description:查看所有博客
     * @Date:13:33 2018/10/4
     */
    List<BlogInfo> queryAll();

    /**
     * @Author:LiuYang
     * @Description:查看单独博客
     * @Date:13:33 2018/10/4
     */
    BlogInfo queryById(int id);

    /**
     * @Author:LiuYang
     * @Description:查看单独博客
     * @Date:13:33 2018/10/4
     */
    int alter(BlogInfo blogInfo);

}
